package com.qida.clm.core.network.request;

import com.qida.clm.core.cache.Cache;
import com.qida.clm.core.network.response.IResponse;

import java.util.Map;

/**
 * Created by edgar on 2016/1/22.
 */
public interface IRequest<T> {

    public interface Method{
        public static final int GET = 0;
        public static final int POST = 1;
    }

    public String getUrl();
    public Map<String,?> getParams();
    public Map<String,String> getHeaders();
    public boolean getShouldCache();
    public Cache<?,T> getCache();
    public void setCache(Cache cache);
    public Object getTag();
    public IResponse getResponse();
    public int getMethod();
    public void setResponse(IResponse<T> response);
    public void onBeforeFire();
}